<div class="expense">
  <p><strong>Description:</strong> <%=h expense.description %></p>
  <p><strong>Amount:</strong> <%=h expense.amount %></p>
  <p><strong>Location:</strong> <%=h expense.location %></p>
  <p><strong>Date:</strong> <%=h expense.created_at %></p>
  <p><strong>Note:</strong> <%=h expense.note %></p>
  <p><strong>Categories:</strong> <% expense.categories.each do |category| %><%=h category.name %> <% end %></p>

  <p>
    <%= link_to 'Show', expense_path(expense) %> |
    <%= link_to 'Edit', edit_expense_path(expense) %> |
    <%= link_to 'Destroy', expense, :confirm => 'Are you sure?', :method => :delete %>
  </p>
</div>
